import time
import logging
import os
import shutil
import time

import facade
import pymysql
from bs4 import BeautifulSoup
from xjlibrary.our_file_dir import BaseDir


curPath = BaseDir.get_file_dir_absolute(__file__)
TopPath = BaseDir.get_upper_dir(curPath, -2)
mysqlutils = facade.MysqlUtiles(BaseDir.get_new_path(curPath, "db.ini"), "db", facade.get_streamlogger())


lists = []
for i in range(1,100000):
    sql = "insert into test (`test`) values ('{}')".format(str(time.time()))
    lists.append(sql)

mysqlutils.ExeSqlListToDB(lists)

